import type { LoginParams, LoginRes, Profile } from "@/types/user";
import { request } from "@/utils/reuqest";

export const LoginAPI = (data: LoginParams) => {
  return request<LoginRes>('/park/login','POST',data)
}

/**
 * 获取用户信息
 * @returns 
 */
export const getProfileAPI = () => {
  return request<Profile>('/park/user/profile')
}